package com.foreknow.dao;

import com.foreknow.bean.GuestBook;

import java.sql.SQLException;
import java.util.List;

public interface GuestBookDao {
    public boolean addBook(GuestBook guestBook) throws SQLException;
    public boolean deleteBook(Integer ID) throws SQLException;

    public GuestBook selectById(Integer id)throws SQLException;
    public boolean updateBook(GuestBook guestBook, String name, String phone, String email, String title, String content, String createdTime) throws SQLException;

    public List<Object> showAllBook() throws SQLException;
    public List<Object> selectBook(String n) throws SQLException;
}
